import routerPlaceholder from '../../views/layout/router-placeholder.vue'

let routers = {
  path: 'terrains',
  name: 'terrains',
  component: routerPlaceholder,
  redirect: {
    name: "weather"
  },
  children: [{
    path: 'test',
    name: 'terrainTest',
    component: () => import('@/views/terrain/test/index.vue'),
    meta: {
      activeMenu: 'terrainTest',
      title: '测试',
      icon: 'terrainTest',
      affix: true
    }
  },{
    path: 'terrain',
    name: 'terrain',
    component: () => import('@/views/terrain/terrain/index.vue'),
    meta: {
      activeMenu: 'terrain',
      title: '地形',
      icon: 'terrain',
      affix: true
    }
  },{
    path: 'terrainClip',
    name: 'terrainClip',
    component: () => import('@/views/terrain/terrainClip/index.vue'),
    meta: {
      activeMenu: 'terrainClip',
      title: '地形开挖',
      icon: 'terrainClip',
      affix: true
    }
  },{
    path: 'viewRangeTerrain',
    name: 'calcVolumn',
    component: () => import('@/views/terrain/calcVolumn/index.vue'),
    meta: {
      activeMenu: 'calcVolumn',
      title: '方量计算',
      icon: 'calcVolumn',
      affix: true
    }
  },{
    path: 'viewRangeTerrain',
    name: 'viewRangeTerrain',
    component: () => import('@/views/terrain/viewRangeTerrain/index.vue'),
    meta: {
      activeMenu: 'viewRangeTerrain',
      title: '可视域分析-地形',
      icon: 'viewRangeTerrain',
      affix: true
    }
  },{
    path: 'exaggeration',
    name: 'terrainExaggeration',
    component: () => import('@/views/terrain/terrainExaggeration/index.vue'),
    meta: {
      activeMenu: 'terrainExaggeration',
      title: '地形夸张',
      icon: 'terrainExaggeration',
      affix: true
    }
  },{
    path: 'satelliteCov',
    name: 'satelliteCov',
    component: () => import('@/views/terrain/satelliteCov/index.vue'),
    meta: {
      activeMenu: 'satelliteCov',
      title: '卫星视锥体',
      icon: 'satelliteCov',
      affix: true
    }
  },{
    path: 'radarCov',
    name: 'radarCov',
    component: () => import('@/views/terrain/radarCov/index.vue'),
    meta: {
      activeMenu: 'radarCov',
      title: '雷达追踪锥体',
      icon: 'radarCov',
      affix: true
    }
  },{
    path: 'phaseArrayRadar',
    name: 'phaseArrayRadar',
    component: () => import('@/views/terrain/phaseArrayRadar/index.vue'),
    meta: {
      activeMenu: 'phaseArrayRadar',
      title: '相控阵雷达',
      icon: 'phaseArrayRadar',
      affix: true
    }
  },{
    path: 'geomAper',
    name: 'geomAper',
    component: () => import('@/views/terrain/geomAper/index.vue'),
    meta: {
      activeMenu: 'geomAper',
      title: '几何外观',
      icon: 'geomAper',
      affix: true
    }
  },{
    path: 'fan',
    name: 'fan',
    component: () => import('@/views/terrain/fans/index.vue'),
    meta: {
      activeMenu: 'fan',
      title: '扇形',
      icon: 'fan',
      affix: true
    }
  // },{
  //   path: 'satellites',
  //   name: 'satellites',
  //   component: () => import('@/views/terrain/satellites/index.vue'),
  //   meta: {
  //     activeMenu: 'satellites',
  //     title: '卫星',
  //     icon: 'satellites',
  //     affix: true
  //   }
  },{
    path: 'sunlight',
    name: 'sunlight',
    component: () => import('@/views/terrain/sunlight/index.vue'),
    meta: {
      activeMenu: 'sunlight',
      title: '日照分析',
      icon: 'sunlight',
      affix: true
    }
  },{
    path: 'shadows',
    name: 'shadows',
    component: () => import('@/views/terrain/shadows/index.vue'),
    meta: {
      activeMenu: 'shadows',
      title: '阴影',
      icon: 'shadows',
      affix: true
    }
  },{
    path: 'contour',
    name: 'contour',
    component: () => import('@/views/terrain/contour/index.vue'),
    meta: {
      activeMenu: 'contour',
      title: '等值线',
      icon: 'contour',
      affix: true
    }
  }]
}

export default routers
